package com.veterinaria.services;

import com.veterinaria.bean.CreditoBean;
import com.veterinaria.factory.DAOFactory;

public class CreditoImplements implements CreditoService{

	DAOFactory factory = DAOFactory.getFactory(1);
	CreditoService dao=factory.getCredito();
	
	@Override
	public void grabarCredito(CreditoBean obj) throws Exception {
		dao.grabarCredito(obj);
	}

	@Override
	public CreditoBean obtenerCredito(CreditoBean cre) throws Exception {
		return dao.obtenerCredito(cre);
	}

	@Override
	public Integer codCredito() throws Exception {
		return dao.codCredito();
	}

	@Override
	public void actualizarCredito(CreditoBean cre) throws Exception {
		dao.actualizarCredito(cre);
	}
	
}
